package com.azusa.common.utils;

import java.util.ArrayList;
import java.util.List;

public class StringUtil {
	public static List<String> splitStringByRegex(String regex,String stringExp){
		List<String> strList = new ArrayList<String>();
		if(stringExp == null || regex == null || "".equals(regex) || "".equals(stringExp)){
			return strList;
		}
		
		for(String temp : stringExp.split(regex)){
			strList.add(temp);
		}
		
		return strList;
	}
}
